package com.base.logistics.jdl.bean.print;

import java.io.Serializable;

/**
 * <pre>
 * 运单信息列表参数对象
 * </pre>
 * @since 2021-02-22
 */
public class WayBillInfo  implements Serializable {

    /**
     * 商城订单号
     * <pre>
     * 是否必填：否
     * </pre>
     */
    private String orderNo;

    /**
     * 京东运单号
     * <pre>
     * 是否必填：是
     * </pre>
     */
    private String jdWayBillCode;

    /**
     * 运单号
     * <pre>
     * 是否必填：否
     * </pre>
     */
    private String wayBillCode;

    /**
     * 是否pop订单，1：pop订单；不填或者0：非pop订单
     * <pre>
     * 是否必填：否
     * </pre>
     */
    private Integer popFlag;

    public WayBillInfo() {
    }

    public String getOrderNo() {
        return this.orderNo;
    }

    public String getJdWayBillCode() {
        return this.jdWayBillCode;
    }

    public String getWayBillCode() {
        return this.wayBillCode;
    }

    public Integer getPopFlag() {
        return this.popFlag;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public void setJdWayBillCode(String jdWayBillCode) {
        this.jdWayBillCode = jdWayBillCode;
    }

    public void setWayBillCode(String wayBillCode) {
        this.wayBillCode = wayBillCode;
    }

    public void setPopFlag(Integer popFlag) {
        this.popFlag = popFlag;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof WayBillInfo)) return false;
        final WayBillInfo other = (WayBillInfo) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$orderNo = this.getOrderNo();
        final Object other$orderNo = other.getOrderNo();
        if (this$orderNo == null ? other$orderNo != null : !this$orderNo.equals(other$orderNo)) return false;
        final Object this$jdWayBillCode = this.getJdWayBillCode();
        final Object other$jdWayBillCode = other.getJdWayBillCode();
        if (this$jdWayBillCode == null ? other$jdWayBillCode != null : !this$jdWayBillCode.equals(other$jdWayBillCode))
            return false;
        final Object this$wayBillCode = this.getWayBillCode();
        final Object other$wayBillCode = other.getWayBillCode();
        if (this$wayBillCode == null ? other$wayBillCode != null : !this$wayBillCode.equals(other$wayBillCode))
            return false;
        final Object this$popFlag = this.getPopFlag();
        final Object other$popFlag = other.getPopFlag();
        if (this$popFlag == null ? other$popFlag != null : !this$popFlag.equals(other$popFlag)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof WayBillInfo;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $orderNo = this.getOrderNo();
        result = result * PRIME + ($orderNo == null ? 43 : $orderNo.hashCode());
        final Object $jdWayBillCode = this.getJdWayBillCode();
        result = result * PRIME + ($jdWayBillCode == null ? 43 : $jdWayBillCode.hashCode());
        final Object $wayBillCode = this.getWayBillCode();
        result = result * PRIME + ($wayBillCode == null ? 43 : $wayBillCode.hashCode());
        final Object $popFlag = this.getPopFlag();
        result = result * PRIME + ($popFlag == null ? 43 : $popFlag.hashCode());
        return result;
    }

    public String toString() {
        return "WayBillInfo(orderNo=" + this.getOrderNo() + ", jdWayBillCode=" + this.getJdWayBillCode() + ", wayBillCode=" + this.getWayBillCode() + ", popFlag=" + this.getPopFlag() + ")";
    }
}
